.class public Lcom/instagram/android/explore/j;
.super Ljava/lang/Object;
.source "RecommendationManager.java"


# instance fields
.field public a:Z

.field private final b:Landroid/content/Context;

.field private final c:Landroid/support/v4/app/aj;

.field private final d:Landroid/os/Handler;

.field private final e:Lcom/instagram/b/d;

.field private f:Lcom/instagram/android/d/e/z;

.field private g:Landroid/widget/ViewAnimator;

.field private h:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/n;",
            ">;"
        }
    .end annotation
.end field

.field private i:Lcom/instagram/android/mediacache/IgImageView;

.field private j:Landroid/widget/TextView;

.field private k:Landroid/widget/TextView;

.field private final l:Lcom/instagram/android/explore/widget/SnapToGridListView;

.field private final m:Lcom/instagram/android/explore/i;

.field private n:Ljava/util/Queue;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Queue",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private o:Ljava/util/Queue;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Queue",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private p:Ljava/util/Queue;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Queue",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private q:Ljava/util/Queue;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Queue",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private r:Landroid/widget/Button;

.field private s:I

.field private t:I

.field private u:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/support/v4/app/aj;Landroid/view/View;Lcom/instagram/b/d;Lcom/instagram/android/explore/p;)V
    .locals 2
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 79
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 54
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/explore/j;->a:Z

    .line 80
    iput-object p1, p0, Lcom/instagram/android/explore/j;->b:Landroid/content/Context;

    .line 81
    iput-object p2, p0, Lcom/instagram/android/explore/j;->c:Landroid/support/v4/app/aj;

    .line 82
    new-instance v0, Lcom/instagram/android/explore/q;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/explore/q;-><init>(Lcom/instagram/android/explore/j;Lcom/instagram/android/explore/k;)V

    iput-object v0, p0, Lcom/instagram/android/explore/j;->d:Landroid/os/Handler;

    .line 83
    iput-object p4, p0, Lcom/instagram/android/explore/j;->e:Lcom/instagram/b/d;

    .line 85
    sget v0, Lcom/facebook/aw;->user_photo:I

    invoke-virtual {p3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/IgImageView;

    iput-object v0, p0, Lcom/instagram/android/explore/j;->i:Lcom/instagram/android/mediacache/IgImageView;

    .line 86
    sget v0, Lcom/facebook/aw;->username:I

    invoke-virtual {p3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/instagram/android/explore/j;->j:Landroid/widget/TextView;

    .line 87
    sget v0, Lcom/facebook/aw;->caption:I

    invoke-virtual {p3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/instagram/android/explore/j;->k:Landroid/widget/TextView;

    .line 89
    sget v0, Lcom/facebook/aw;->explore_grid:I

    invoke-virtual {p3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/explore/widget/SnapToGridListView;

    iput-object v0, p0, Lcom/instagram/android/explore/j;->l:Lcom/instagram/android/explore/widget/SnapToGridListView;

    .line 90
    new-instance v0, Lcom/instagram/android/explore/i;

    invoke-direct {v0, p1}, Lcom/instagram/android/explore/i;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/instagram/android/explore/j;->m:Lcom/instagram/android/explore/i;

    .line 91
    iget-object v0, p0, Lcom/instagram/android/explore/j;->l:Lcom/instagram/android/explore/widget/SnapToGridListView;

    iget-object v1, p0, Lcom/instagram/android/explore/j;->m:Lcom/instagram/android/explore/i;

    invoke-virtual {v0, v1}, Lcom/instagram/android/explore/widget/SnapToGridListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 93
    sget v0, Lcom/facebook/aw;->explore_recommendation_loading_switcher:I

    invoke-virtual {p3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ViewAnimator;

    iput-object v0, p0, Lcom/instagram/android/explore/j;->g:Landroid/widget/ViewAnimator;

    .line 96
    sget v0, Lcom/facebook/aw;->explore_button_retry:I

    invoke-virtual {p3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/explore/k;

    invoke-direct {v1, p0}, Lcom/instagram/android/explore/k;-><init>(Lcom/instagram/android/explore/j;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 103
    sget v0, Lcom/facebook/aw;->button_skip:I

    invoke-virtual {p3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/explore/l;

    invoke-direct {v1, p0}, Lcom/instagram/android/explore/l;-><init>(Lcom/instagram/android/explore/j;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 110
    sget v0, Lcom/facebook/aw;->button_follow:I

    invoke-virtual {p3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/instagram/android/explore/j;->r:Landroid/widget/Button;

    .line 112
    iget-object v0, p0, Lcom/instagram/android/explore/j;->r:Landroid/widget/Button;

    new-instance v1, Lcom/instagram/android/explore/m;

    invoke-direct {v1, p0}, Lcom/instagram/android/explore/m;-><init>(Lcom/instagram/android/explore/j;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 119
    invoke-direct {p0, p5}, Lcom/instagram/android/explore/j;->a(Lcom/instagram/android/explore/p;)V

    .line 120
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/explore/j;)V
    .locals 0
    .parameter

    .prologue
    .line 33
    invoke-direct {p0}, Lcom/instagram/android/explore/j;->g()V

    return-void
.end method

.method private a(Lcom/instagram/android/explore/p;)V
    .locals 6
    .parameter

    .prologue
    .line 123
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/explore/j;->h:Ljava/util/List;

    .line 125
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/explore/j;->n:Ljava/util/Queue;

    .line 126
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/explore/j;->o:Ljava/util/Queue;

    .line 127
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/explore/j;->p:Ljava/util/Queue;

    .line 128
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/explore/j;->q:Ljava/util/Queue;

    .line 130
    new-instance v0, Lcom/instagram/android/d/e/z;

    const/16 v1, 0xa

    iget-object v2, p0, Lcom/instagram/android/explore/j;->b:Landroid/content/Context;

    iget-object v3, p0, Lcom/instagram/android/explore/j;->c:Landroid/support/v4/app/aj;

    const/4 v4, 0x2

    new-instance v5, Lcom/instagram/android/explore/n;

    invoke-direct {v5, p0, p1}, Lcom/instagram/android/explore/n;-><init>(Lcom/instagram/android/explore/j;Lcom/instagram/android/explore/p;)V

    invoke-direct/range {v0 .. v5}, Lcom/instagram/android/d/e/z;-><init>(ILandroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/f;)V

    iput-object v0, p0, Lcom/instagram/android/explore/j;->f:Lcom/instagram/android/d/e/z;

    .line 185
    invoke-direct {p0}, Lcom/instagram/android/explore/j;->g()V

    .line 186
    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 5
    .parameter

    .prologue
    .line 281
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v1

    new-instance v2, Lcom/instagram/b/b;

    iget-object v0, p0, Lcom/instagram/android/explore/j;->e:Lcom/instagram/b/d;

    invoke-direct {v2, p1, v0}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    const-string v3, "rec_user"

    iget-object v0, p0, Lcom/instagram/android/explore/j;->h:Ljava/util/List;

    const/4 v4, 0x0

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/n;

    invoke-virtual {v0}, Lcom/instagram/android/model/n;->a()Lcom/instagram/android/model/b/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v3, v0}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    move-result-object v0

    const-string v2, "depth"

    iget v3, p0, Lcom/instagram/android/explore/j;->u:I

    invoke-virtual {v0, v2, v3}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v0

    const-string v2, "total_skips"

    iget v3, p0, Lcom/instagram/android/explore/j;->t:I

    invoke-virtual {v0, v2, v3}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v0

    const-string v2, "total_follows"

    iget v3, p0, Lcom/instagram/android/explore/j;->s:I

    invoke-virtual {v0, v2, v3}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v0

    invoke-interface {v1, v0}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    .line 288
    return-void
.end method

.method static synthetic b(Lcom/instagram/android/explore/j;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 33
    iget-object v0, p0, Lcom/instagram/android/explore/j;->h:Ljava/util/List;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/android/explore/j;)Ljava/util/Queue;
    .locals 1
    .parameter

    .prologue
    .line 33
    iget-object v0, p0, Lcom/instagram/android/explore/j;->n:Ljava/util/Queue;

    return-object v0
.end method

.method static synthetic d(Lcom/instagram/android/explore/j;)Ljava/util/Queue;
    .locals 1
    .parameter

    .prologue
    .line 33
    iget-object v0, p0, Lcom/instagram/android/explore/j;->p:Ljava/util/Queue;

    return-object v0
.end method

.method static synthetic e(Lcom/instagram/android/explore/j;)Ljava/util/Queue;
    .locals 1
    .parameter

    .prologue
    .line 33
    iget-object v0, p0, Lcom/instagram/android/explore/j;->o:Ljava/util/Queue;

    return-object v0
.end method

.method static synthetic f(Lcom/instagram/android/explore/j;)Ljava/util/Queue;
    .locals 1
    .parameter

    .prologue
    .line 33
    iget-object v0, p0, Lcom/instagram/android/explore/j;->q:Ljava/util/Queue;

    return-object v0
.end method

.method static synthetic g(Lcom/instagram/android/explore/j;)Landroid/widget/ViewAnimator;
    .locals 1
    .parameter

    .prologue
    .line 33
    iget-object v0, p0, Lcom/instagram/android/explore/j;->g:Landroid/widget/ViewAnimator;

    return-object v0
.end method

.method private g()V
    .locals 3

    .prologue
    .line 189
    iget-boolean v0, p0, Lcom/instagram/android/explore/j;->a:Z

    if-eqz v0, :cond_0

    .line 195
    :goto_0
    return-void

    .line 192
    :cond_0
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/android/explore/j;->a:Z

    .line 194
    iget-object v0, p0, Lcom/instagram/android/explore/j;->f:Lcom/instagram/android/d/e/z;

    iget-object v1, p0, Lcom/instagram/android/explore/j;->n:Ljava/util/Queue;

    iget-object v2, p0, Lcom/instagram/android/explore/j;->o:Ljava/util/Queue;

    invoke-virtual {v0, v1, v2}, Lcom/instagram/android/d/e/z;->a(Ljava/util/Queue;Ljava/util/Queue;)V

    goto :goto_0
.end method

.method static synthetic h(Lcom/instagram/android/explore/j;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 33
    iget-object v0, p0, Lcom/instagram/android/explore/j;->d:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic i(Lcom/instagram/android/explore/j;)Lcom/instagram/android/explore/widget/SnapToGridListView;
    .locals 1
    .parameter

    .prologue
    .line 33
    iget-object v0, p0, Lcom/instagram/android/explore/j;->l:Lcom/instagram/android/explore/widget/SnapToGridListView;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 198
    iget-object v0, p0, Lcom/instagram/android/explore/j;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x3

    if-gt v0, v1, :cond_0

    .line 199
    invoke-direct {p0}, Lcom/instagram/android/explore/j;->g()V

    .line 202
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/android/explore/j;->e()V

    .line 204
    iget-object v0, p0, Lcom/instagram/android/explore/j;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_2

    .line 205
    iget-object v0, p0, Lcom/instagram/android/explore/j;->h:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/n;

    .line 207
    iget-object v1, p0, Lcom/instagram/android/explore/j;->i:Lcom/instagram/android/mediacache/IgImageView;

    invoke-virtual {v0}, Lcom/instagram/android/model/n;->a()Lcom/instagram/android/model/b/e;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/model/b/e;->j()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/instagram/android/mediacache/IgImageView;->setUrl(Ljava/lang/String;)V

    .line 208
    iget-object v1, p0, Lcom/instagram/android/explore/j;->j:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/instagram/android/model/n;->a()Lcom/instagram/android/model/b/e;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/model/b/e;->f()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 209
    iget-object v1, p0, Lcom/instagram/android/explore/j;->k:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/instagram/android/model/n;->b()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 211
    iget-object v1, p0, Lcom/instagram/android/explore/j;->m:Lcom/instagram/android/explore/i;

    invoke-virtual {v1, v0}, Lcom/instagram/android/explore/i;->a(Lcom/instagram/android/model/n;)V

    .line 212
    iget-object v0, p0, Lcom/instagram/android/explore/j;->d:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/explore/o;

    invoke-direct {v1, p0}, Lcom/instagram/android/explore/o;-><init>(Lcom/instagram/android/explore/j;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 220
    iget-object v0, p0, Lcom/instagram/android/explore/j;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-le v0, v3, :cond_1

    .line 221
    iget-object v0, p0, Lcom/instagram/android/explore/j;->h:Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/n;

    .line 222
    invoke-static {}, Lcom/instagram/f/b/c;->a()Lcom/instagram/f/b/c;

    move-result-object v1

    invoke-virtual {v0}, Lcom/instagram/android/model/n;->c()Ljava/util/List;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/instagram/f/b/c;->a(Ljava/util/List;)V

    .line 223
    invoke-static {}, Lcom/instagram/f/b/c;->a()Lcom/instagram/f/b/c;

    move-result-object v1

    invoke-virtual {v0}, Lcom/instagram/android/model/n;->d()Ljava/util/List;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/instagram/f/b/c;->a(Ljava/util/List;)V

    .line 228
    :cond_1
    :goto_0
    return-void

    .line 226
    :cond_2
    iget-object v0, p0, Lcom/instagram/android/explore/j;->g:Landroid/widget/ViewAnimator;

    invoke-virtual {v0, v2}, Landroid/widget/ViewAnimator;->setDisplayedChild(I)V

    goto :goto_0
.end method

.method public b()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 231
    iget-object v0, p0, Lcom/instagram/android/explore/j;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/explore/j;->d:Landroid/os/Handler;

    invoke-virtual {v0, v2}, Landroid/os/Handler;->hasMessages(I)Z

    move-result v0

    if-nez v0, :cond_0

    .line 232
    iget v0, p0, Lcom/instagram/android/explore/j;->t:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/instagram/android/explore/j;->t:I

    .line 233
    const-string v0, "fon_skip"

    invoke-direct {p0, v0}, Lcom/instagram/android/explore/j;->a(Ljava/lang/String;)V

    .line 234
    iget-boolean v0, p0, Lcom/instagram/android/explore/j;->a:Z

    if-eqz v0, :cond_1

    .line 235
    iget-object v1, p0, Lcom/instagram/android/explore/j;->q:Ljava/util/Queue;

    iget-object v0, p0, Lcom/instagram/android/explore/j;->h:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/n;

    invoke-virtual {v0}, Lcom/instagram/android/model/n;->a()Lcom/instagram/android/model/b/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v0

    invoke-interface {v1, v0}, Ljava/util/Queue;->offer(Ljava/lang/Object;)Z

    .line 240
    :goto_0
    iget v0, p0, Lcom/instagram/android/explore/j;->u:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/instagram/android/explore/j;->u:I

    .line 241
    iget-object v0, p0, Lcom/instagram/android/explore/j;->d:Landroid/os/Handler;

    invoke-virtual {v0, v2}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 243
    :cond_0
    return-void

    .line 237
    :cond_1
    iget-object v1, p0, Lcom/instagram/android/explore/j;->o:Ljava/util/Queue;

    iget-object v0, p0, Lcom/instagram/android/explore/j;->h:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/n;

    invoke-virtual {v0}, Lcom/instagram/android/model/n;->a()Lcom/instagram/android/model/b/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v0

    invoke-interface {v1, v0}, Ljava/util/Queue;->offer(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method public c()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 246
    iget-object v0, p0, Lcom/instagram/android/explore/j;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/explore/j;->d:Landroid/os/Handler;

    invoke-virtual {v0, v4}, Landroid/os/Handler;->hasMessages(I)Z

    move-result v0

    if-nez v0, :cond_0

    .line 247
    iget v0, p0, Lcom/instagram/android/explore/j;->s:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/instagram/android/explore/j;->s:I

    .line 248
    const-string v0, "fon_follow"

    invoke-direct {p0, v0}, Lcom/instagram/android/explore/j;->a(Ljava/lang/String;)V

    .line 250
    invoke-static {}, Lcom/instagram/android/model/b/m;->a()Lcom/instagram/android/model/b/m;

    move-result-object v1

    iget-object v0, p0, Lcom/instagram/android/explore/j;->h:Ljava/util/List;

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/n;

    invoke-virtual {v0}, Lcom/instagram/android/model/n;->a()Lcom/instagram/android/model/b/e;

    move-result-object v0

    iget-object v2, p0, Lcom/instagram/android/explore/j;->b:Landroid/content/Context;

    iget-object v3, p0, Lcom/instagram/android/explore/j;->c:Landroid/support/v4/app/aj;

    invoke-virtual {v1, v0, v2, v3}, Lcom/instagram/android/model/b/m;->b(Lcom/instagram/android/model/b/e;Landroid/content/Context;Landroid/support/v4/app/aj;)V

    .line 253
    invoke-virtual {p0}, Lcom/instagram/android/explore/j;->d()V

    .line 255
    iget-boolean v0, p0, Lcom/instagram/android/explore/j;->a:Z

    if-eqz v0, :cond_1

    .line 256
    iget-object v1, p0, Lcom/instagram/android/explore/j;->p:Ljava/util/Queue;

    iget-object v0, p0, Lcom/instagram/android/explore/j;->h:Ljava/util/List;

    invoke-interface {v0, v4}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/n;

    invoke-virtual {v0}, Lcom/instagram/android/model/n;->a()Lcom/instagram/android/model/b/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v0

    invoke-interface {v1, v0}, Ljava/util/Queue;->offer(Ljava/lang/Object;)Z

    .line 261
    :goto_0
    iget v0, p0, Lcom/instagram/android/explore/j;->u:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/instagram/android/explore/j;->u:I

    .line 262
    iget-object v0, p0, Lcom/instagram/android/explore/j;->d:Landroid/os/Handler;

    const-wide/16 v1, 0x12c

    invoke-virtual {v0, v4, v1, v2}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    .line 264
    :cond_0
    return-void

    .line 258
    :cond_1
    iget-object v1, p0, Lcom/instagram/android/explore/j;->n:Ljava/util/Queue;

    iget-object v0, p0, Lcom/instagram/android/explore/j;->h:Ljava/util/List;

    invoke-interface {v0, v4}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/n;

    invoke-virtual {v0}, Lcom/instagram/android/model/n;->a()Lcom/instagram/android/model/b/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v0

    invoke-interface {v1, v0}, Ljava/util/Queue;->offer(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method public d()V
    .locals 2

    .prologue
    .line 267
    iget-object v0, p0, Lcom/instagram/android/explore/j;->r:Landroid/widget/Button;

    sget v1, Lcom/facebook/av;->button_large_green_bg:I

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 268
    iget-object v0, p0, Lcom/instagram/android/explore/j;->r:Landroid/widget/Button;

    sget v1, Lcom/facebook/ba;->following_button_following:I

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 269
    return-void
.end method

.method public e()V
    .locals 2

    .prologue
    .line 272
    iget-object v0, p0, Lcom/instagram/android/explore/j;->r:Landroid/widget/Button;

    sget v1, Lcom/facebook/av;->button_large_blue_bg:I

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 273
    iget-object v0, p0, Lcom/instagram/android/explore/j;->r:Landroid/widget/Button;

    sget v1, Lcom/facebook/ba;->following_button_follow:I

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 274
    return-void
.end method

.method public f()V
    .locals 2

    .prologue
    .line 277
    iget-object v0, p0, Lcom/instagram/android/explore/j;->d:Landroid/os/Handler;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 278
    return-void
.end method
